home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 November / macformat-043.iso / mac / Shareware Plus / Developers / OpenStack Rinaldi Collection / openstack-rinaldi-lib / StrWidth 1.0 (US) / StrWidth 1.0 (US).rsrc / HELP_5635 next >
Encoding:
Text File  |  1996-01-09  |  1.5 KB  |  39 lines

  1.  
  2.  
  3.                                               StrWidth 1.0
  4.  
  5.                                           by Frédéric RINALDI
  6.  
  7. DESCRIPTION
  8.   StrWidth XFCN returns the length in pixels of a string, according to its text attributes.
  9.  
  10. SYNTAX
  11.                     StrWidth(<text>[<font>[,<size>[,<style(s)>]]]
  12.  
  13. PARAMETERS
  14.    <text> is the string to mesure. It cannot exceed 255 chars.
  15.  
  16.    The following params are optional. Default is Chicago 12 plain.
  17.  
  18.    <font> is the font name.
  19.  
  20.    <size> is the font size.
  21.  
  22.    <style(s)> is a comma separated list of one or more items containing the style(s) of the text. (plain, bold, italic, outline, underline, shadow, condense, extend)
  23.  
  24.    Using "!" and "?" as parameter will return an online help (resp. copyright and syntax).
  25.  
  26. ERRORS
  27. If an StrWidth occurs, external can return :
  28.                  "Error : Missing parameter"
  29.                  "Error : No such Font"
  30.                  "Error : Bad font size"
  31. --------------------------------------------------------------------
  32.    All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present :
  33.  
  34.                    StrWidth XFCN, © Frederic Rinaldi, 1989…1993.
  35.  
  36.    Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses:
  37.  
  38. AppleLink: RINALDI1   CalvaCom : FR10    Compuserve : 71170,2111
  39.                Internet : RINALDI1@APPLELINK@APPLE.COM